<%@page import="entity.Banji"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<!-- http://localhost:8080/Java201202/student?name=zhangsan&age=23&gender=n -->
	<form action="<%=request.getContextPath()%>/student?method=insert" method="post">
		用户名：<input type="text" name="name"/><br/>
		年龄： <input type="text" name="age"/><br/>
		性别： <input type="text" name="gender"/><br/>
		班级：<select name="banjiId">
				<%
					ArrayList<Banji> list = (ArrayList<Banji>)request.getAttribute("list");
					for (Banji banji : list) {
				%>
						<option value="<%=banji.getId()%>"><%=banji.getName()%></option>
				<%
					}
				%>
				
			 </select>
			 <br/>
		<input type="submit" value="添加">
	</form>
</body>
</html>